getOrDefault

fun <C : Any> getOrDefault(key: ConfigContext.Key<C>, fallback: C): C

get a generic value from this context, or null if it doesn't exist as the specified type at the specified key

Return

Value stored with the context flag, or null

Author

fzzyhmstrs

Since

0.4.0

Parameters

C

type to retrieve with the key